﻿using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.ComponentModel.Design;
using Microsoft.Win32;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Shell;
using Microsoft.StoryboardDesigner.Platform.CustomProjects;
using Microsoft.VisualStudio.Package;

namespace Microsoft.StoryboardDesigner.Platform
{
    [ProvideProjectFactory(typeof(StoryboardDesignerProjectFactory), StoryboardDesignerProjectNode.ProjectTypeName, "Storyboard Designer Project Files (*.stbproj);*.stbproj", "stbproj", "stbproj", @"\\", LanguageVsTemplate = StoryboardDesignerProjectNode.ProjectTypeName, NewProjectRequireNewFolderVsTemplate = true)]
    [ProvideLoadKey("Standard", "1.0", "StoryboardDesignerPlatform", "Microsoft Corporation", 2)]
    [PackageRegistration(UseManagedResourcesOnly = true)]
    [DefaultRegistryRoot("Software\\Microsoft\\VisualStudio\\9.0")]
    [ProvideMenuResource(1000, 1)]
    [Guid(VsPackageConstants.guidVsPackagePkgString)]
    public sealed class VsPackage : ProjectPackage
    {
        public VsPackage()
        {
        }

        protected override void Initialize()
        {
            base.Initialize();
            this.RegisterProjectFactory(new StoryboardDesignerProjectFactory(this));
        }
    }
}